<%@ page language="java" %>
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="java.util.*" %>
<%@ page import="java.net.URLEncoder" %>
<%@ page import="com.sisuntech.common.*" %>
<%@ page import="com.sisuntech.org.*" %>
<%
  String md5_code = "5848201314";
  String site_from = request.getParameter("site_from");
  String nextUrl = request.getParameter("nextUrl");
  String loginName = "";
  UserBase curUser = (UserBase) request.getSession().getAttribute(AppConstants.Session_User);
  if(curUser != null)loginName = curUser.getLoginName();
  String md5 = StringUtil.hash(loginName + md5_code);
  String urlString = site_from + "?loginName=" + URLEncoder.encode(loginName, "gb2312") + "&md5=" + md5 + "&nextUrl=" + nextUrl;
  out.println(urlString);
  if(site_from != null)response.sendRedirect(urlString);
%>

